package com.dengzhuo.core.transport;

import com.dengzhuo.core.serializer.CommonSerializer;

/**
 * 服务器类通用接口
 * @author 阿卓
 * @version 1.0
 * @date 2021/3/9 0009 14:20
 */
public interface RpcServer {
    int DEFAULT_SERIALIZER = CommonSerializer.KRYO_SERIALIZER;

    void start();

    <T> void publishService(T service, String serviceName);
}
